home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17345 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  53 lines

  1. Newsgroups: comp.lang.c++
  2. Path: artemis.sto.fdata.se!news
  3. From: Niklas Mellin <niklas.mellin@sto.fdata.se>
  4. Subject: Re: Simple Question seeks simple answer
  5. Sender: news@artemis.sto.fdata.se (UseNet NetNews)
  6. Message-ID: <3172424F.591B@sto.fdata.se>
  7. Date: Mon, 15 Apr 1996 12:34:23 GMT
  8. Content-Transfer-Encoding: 7bit
  9. Content-Type: text/plain; charset=us-ascii
  10. References: <DpwFCI.xu.0.-s@cs.vu.nl>
  11. Mime-Version: 1.0
  12. X-Mailer: Mozilla 2.0 (WinNT; I)
  13. Organization: WM-data F÷rsvarsdata AB, Sweden
  14.  
  15. Lassche MA wrote:
  16. > I'm skipping from 16bit to 32bit, there are some minor problems which I
  17. > cannot solve nor does the 'whelp cguide'.
  18. > In 16 bits it was common practice to do the well known string copy
  19. > something like
  20. >         mov es,x
  21. >         mov di,y
  22. >         mov cx,z
  23. >         mov es:[di],x1
  24. >         rep movsd.
  25.  
  26. Not common practice in C++ I hope...
  27.  
  28. [ more assambly code deleted... ]
  29.  
  30. > Question [(1)] how to do a string copy 32 bits - wise ?
  31.  
  32. Can't get any simpler than this:
  33.  
  34. strcpy(dest, source); // Works fine on all C and C++ compilers
  35.  
  36. > Something which looks the same.
  37. > To get the VESA info you've got to call int 10H with arguments AH  = 4fh
  38. > and AL = 00H and ES:DI being the pointer to put the junk. Once more
  39. > how's this done in 32 bit.
  40.  
  41. [ More non C++ stuff deleted ]
  42.  
  43. > Any bright ideas people ?
  44.  
  45. Maybe this should have been posted on some other news group since
  46. it doesn't seem to be about C++.
  47.  
  48. ---
  49. Niklas Mellin
  50.